package com.feige.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feige.pojo.SignIn;
import com.feige.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 签到表 Mapper 接口
 * </p>
 *
 * @author feige
 * @since 2020-11-20
 */

@Repository
public interface SignInMapper extends BaseMapper<SignIn> {

    /**
     * 通过任务ID获取已签到的人
     * @param id 任务ID
     * @return
     */
    List<UserVo> getSignedBySignTaskId(@Param("id") String id);
}
